<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        class Cats{
            name = "三三";
            age = 7;
        }
        let cat = new Cats();
        let cat1 = new Cats();
        console.log(cat,cat1);
        class Dog{
            constructor(name,age){
                this.name=name;
                this.age=age;
            }
        }
        let dog1 = new Dog("哈哈哈",2);
        let dog2 = new Dog("嘿嘿嘿",3);
        console.log(dog1, dog2);
        class Boy {
            constructor(name,age){
                this.name = name;
                this.age = age;  
            }
        //     say = function(){
        //     console.log("我爱你");
        // }
        say = ()=>{
            console.log("我爱你")
        }
        }
        let zs = new Boy("张三",18);
        console.log(zs)
    </script>
</body>
</html>